package com.cmc.cloud.cmclink.doc.api.document.req.si;


import com.cmc.cloud.cmclink.doc.api.document.req.AttachmentUpdateReqDto;
import com.cmc.cloud.cmclink.doc.api.document.req.RequirementsUpdateReqDto;
import com.cmc.cloud.cmclink.doc.api.document.req.so.SoForecastBaseVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 周贤
 * @date 2025/7/28
 */
@Schema(description = "管理后台 - 提单主信息创建 Request VO")
@Data
@EqualsAndHashCode()
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@Valid
public class BlnoInfoDto {

    @Schema(description = "草稿、提交", example = "draft:草稿，sub：提交")
    @NotBlank(message = "si提交类型不允许为空")
    private String siSubType;

    @Schema(description = "舱单id")
    private Long manifestId;

    @Schema(description = "数据来源", example = "edi 网厅:web 手工:manual")
    @NotBlank(message = "数据来源")
    private String dataSource;

    @Schema(description = "提单主信息主表数据")
    @Valid
    @NotNull(message = "提单主信息不可为空")
    private BlnoBaseInfoDto blnoBasInfoVO;

    @Schema(description = "提单航线船期信息")
    @NotEmpty(message = "提单航线船期信息不可为空")
    private List<BlnoVslvoyUpdateReqDto> blnoVslvoys;

    @Schema(description = "提单指定支付方式信息")
    private List<BlnoPaymentUpdateReqDto> blnoPayments;

    @Schema(description = "订舱特殊要求")
    private List<RequirementsUpdateReqDto> reqVOList;

    @Schema(description = "提单附件信息")
    private List<AttachmentUpdateReqDto> attachmentReqVO;

    @Schema(description = "提单收发通信息")
    private List<BlnoScnUpdateReqDto> blnoScns;

    @Schema(description = "提单货物信息")
    private List<BlnoCargoUpdateReqDto> blnoCargos;

    @Schema(description = "提单箱信息")
    private List<BlnoCntrUpdateReqDto> blnoCntrs;

    @Schema(description = "提单箱VGM信息")
    private List<BlnoVgmReqDto> vgmCreateReqDtos;

    @Schema(description = "预配箱数据")
    private List<SoForecastBaseVO> soForecastList;

}
